<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<css file="__PUBLIC__/Css/style.css"/>
</head>
<body>
<section class="widget" style="min-height:300px">
		<header>
			<span class="icon"></span>
			<hgroup>
			<if condition="!$type">
				<h1>博文列表</h1>
			<else/>
				<h1>回收站列表</h1>
			</if>
				<h2><a href="{:U(GROUP_NAME.'/Blog/blog')}" target="iframe">分布博文</a></h2>
			</hgroup>
		</header>
		<table id="myTable" border="0" width="100">
				<thead>
					<tr>
						<th class="header" >ID</th>
						<th class="header">文章标题</th>
						<th class="header">发布时间</th>
						<th class="header">所属分类</th>
						<th class="header">操作</th>
					</tr>
				</thead>
				<tbody>
				<foreach name="blog" item="v">
					<tr class="odd">
						<td style="padding-left:50px;">{$v.id}</td>
						<td>
							{$v.title}
							<foreach name="v['attr']" item='value'>
							[<span style="color:{$value.color}">{$value.name}</span>]
							</foreach>
						</td>
						<td>{$v.time|date="Y-m-d H:i",###}</td>
						<td>{$v.cate.name}</td>
						<if condition="!$type">
							<td>[<a href="{:U(GROUP_NAME.'/Blog/toRecycle',array('id'=>$v['id'],'del'=>1))}">删除</a>][<a href="{:U(GROUP_NAME.'/Blog/blog',array('id'=>$v['id']))}">修改</a>]</td>
						<else/>
							<td>[<a href="{:U(GROUP_NAME.'/Blog/toRecycle',array('id'=>$v['id'],'del'=>0))}">还原</a>][<a href="{:U(GROUP_NAME.'/Blog/delete',array('id'=>$v['id']))}">彻底删除</a>]</td>
						</if>
					</tr>
					</foreach>
				</tbody>
		</table>
		<div>{$page}</div>
		<if condition="$type">
			<button style="margin:10px;" class="green"><a style="color:#fff" href="{:U(GROUP_NAME.'/Blog/clear')}">清空回收站</a></button>
		</if>
	</section>
</html>